Image processing for implementing multiple graph repairing functions

ABSTRACT

An image processing component is provided. The apparatus includes: a display control configured to display an image to be edited in a first region of a display region or display a target image obtained from an image to be edited; an automatic image processing control configured to enter an automatic mode in response to a first control instruction; and a manual image processing control configured to enter a manual mode in response to a second control instruction. In the automatic mode and/or manual mode, the electronic device can switch between different graph repairing functions in response to a function switching instruction.

CROSS REFERENCE OF RELATED APPLICATION

The present application is a continuation of International PatentApplication No. PCT/CN2021/077223, filed on Feb. 22, 2021, which claimsthe priority to Chinese Patent Application No. 202010113048.9, titled“IMAGE PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE AND STORAGEMEDIUM”, filed on Feb. 24, 2020, with the State Intellectual PropertyOffice of the PRC, both of which are incorporated herein by reference intheir entireties.

FIELD

The present disclosure relates to technical field of images, and inparticular to an image processing method, an image processing component,an electronic device and a storage medium.

BACKGROUND

The existing image processing software, such as a graph repairingsoftware, supports automatic graph repairing and manual graph repairing.In order to satisfy the user requirement, multiple graph repairingfunctions based on effects are developed. For example, the beauty graphrepairing includes a skin griding function, a freckle removing and acneremoving function a whitening fucniton and so on.

For the existing graph repairing software, switching between the manualmode and the automatic mode can be performed only for a single graphrepairing function. For example, if a user select the skin grindingfunction, switching between the manual mode and the automatic mode canbe performed only for the skin grinding function. If the user expects toswitch to the freckle removing function in the automatic mode, the userneeds to exit from the skin grinding function, select the freckleremoving function and select the automatic mode. Apparently, the aboveoperations are complicated, resulting in a bad user experience.

SUMMARY

To solve the above problem, an image processing method, an imageprocessing component, an electronic device and a storage medium areprovided according to the present disclosure, so as to switch betweengraph repairing functions in an automatic mode or a manual mode. In thisway, operations are simplified and user experience is improved in a caseof satisfying user requirements.

In a first aspect, an image processing component is provided accordingto embodiments of the present disclosure. The apparatus is applied to anelectronic device to realize at least two graph repairing functions. Theapparatus includes at least a display control, au automatic imageprocessing control and a manual image processing control. The displaycontrol is configured to display an image to be edited in a first regionof a display region, or display a target image obtained by processing animage to be edited with the graph repairing function. The automaticimage processing control is configured to enter, in response to a firstcontrol instruction, an automatic mode in which automatic graphrepairing is performed on a preset region of the image to be edited orthe target image according to a preset automatic graph repairing rule.The manual image processing control is configured to enter, in responseto a second control instruction, a manual mode in which a region to beprocessed is selected from the image to be edited or the target imagebased on a first touch control operation, and manual graph repairing isperformed on the region to be processed according to a preset manualgraph repairing rule based on at least a first operation feature of thefirst touch control operation. In the automatic mode and/or manual mode,the electronic device is capable of switching between the graphrepairing functions in response to a function switching instruction.

According to the technical solution of the present disclosure, theautomatic image processing control is provided, and the automatic imageprocessing control can run in an automatic mode in which automatic graphrepairing is performed. The manual image processing control is furtherprovided, and the manual image processing control can run in a manualmode in which manual graphic repairing is performed. The automatic imageprocessing control and the manual image processing control do not limitthe graph repairing function, that is, supporting switching between theautomatic mode and the manual mode for the graph repairing function. Inaddition, in the automatic mode or the manual mode, switching can beperformed between the graph repairing functions in response to thefunction switching instruction. In the conventional technology,switching can be performed between the manual mode and the automaticmode only in a graph repairing mode. Compared with the solution in theconventional technology, with the technical solution of the presentdisclosure, operations are simplified and user experience is improved ina case of satisfying user requirements.

In an embodiment, the automatic image processing control is furtherconfigured to detect a second touch control operation in the automaticmode, determine an automatic graph repairing intensity feature based ona second operation feature of the second touch control operation, anddetermine an automatic graph repairing parameter matching with at leastthe automatic graph repairing intensity feature from preset automaticparameters included in the preset automatic graph repairing rule, toperform automatic graph repairing processing on the preset region.

In the automatic mode, the automatic graph repairing intensity featurecan be determined based on the user operation, such as the secondoperation feature of the second touch control operation, so as todetermine the automatic graph repairing parameter, thereby improvingcontrol sensation of the user in the automatic mode, and thus beingbeneficial to satisfy the user requirement and improve the userexperience.

In an embodiment, the automatic image processing control is furtherconfigured to determine a first target graph repairing function in theautomatic mode, and determine an automatic graph repairing parametermatching with the automatic graph repairing intensity feature and thefirst target graph repairing function from the preset automaticparameters included in the preset automatic graph repairing rule, toperform automatic graph repairing processing on the preset region.

In the automatic mode, the automatic graph repairing intensity featurecan be determined based on the user operation, such as the secondoperation feature of the second touch control operation, and theautomatic graph repairing parameter is determined based on the automaticgraph repairing intensity feature and the current graph repairingfunction, such as the first target graph repairing function, therebyimproving control sensation of the user in the automatic mode, and thusbeing beneficial to satisfy the user requirement and improve the userexperience. In addition, automatic image processing capability isrefined, thereby being beneficial to improve automatic image processingeffect and improve the user experience.

In an embodiment, the manual image processing control is furtherconfigured to: determine a second target graph repairing function, anddetermine a manual graph repairing parameter matching with at least thesecond target graph repairing function from preset manual parametersincluded in the preset manual graph repairing rule, to perform manualgraph repairing processing on the region to be processed selected by thefirst touch control operation, in the manual mode.

In the manual mode, the manual graph repairing parameter can bedetermined based on the graph repairing function, such as the secondtarget graph repairing function, and the manual graph repairingprocessing is performed on the region to be processed selected by thefirst touch control operation, thereby refining the image processingcapability in the manual mode, and thus being beneficial to improve theimage processing effect and improve the user experience.

In an embodiment, the automatic image processing control is furtherconfigured to: display a graph repairing intensity selection regioncorresponding to the graph repairing function in a region other than thefirst region in the display region, and determine au automatic graphrepairing intensity feature corresponding to the second operationfeature by using the graph repairing intensity selection region. Thesecond touch control operation is applied to the graph repairingintensity selection region.

The graph repairing intensity selection region is used to instruct theuser to select the graph repairing intensity. The operation is simpleand easy to be understood, thereby expanding the application scenario.For example, a user not proficient in the image processing technologycan also perform the above operation, thereby satisfying requirements ofdifferent users, and thus improving the user experience.

In an embodiment, a prompt identification representing the automaticgraph repairing intensity feature is arranged in the graph repairingintensity selection region. When it is switched from the manual mode tothe automatic mode for the graph repairing function or it is switched tothe graph repairing function, the prompt identification is located at aninitial position in the graph repairing intensity selection region.

In an embodiment, the display control is further configured to display amode switching button in a region other than the first region in thedisplay region; generate, in response to a second touch controloperation applied on the mode switching button, a mode switchinginstruction, to switch from a current automatic mode to a manual mode orswitch from a current manual mode to the automatic mode.

The mode switching button is provided in the display region, therebybeing convenient for the user to switch between the automatic mode andthe manual mode. In addition, with the mode switching button, modeswitching can be performed between different graph repairing functions,and the switching operation is simple, thereby being beneficial toimprove the user experience.

In an embodiment, the display control is further configured to display agraph repairing function interface in a region other than the firstregion in the display region, and display a function buttoncorresponding to the graph repairing function in the graph repairingfunction interface.

The display control is further configured to generate a functionswitching instruction in response to a third touch control operationapplied on a target function button, and switch between graph repairingfunctions, to switch to a target graph repairing function selected bythe third touch control operation; or switch to a graph repairingfunction corresponding to the target function button in response to athird touch control operation applied on the target function button.

The function button corresponding to the graph repairing function isdisplayed on the graph repairing function interface, for example, thereis a one-to-one correspondence between the graph repairing functions andthe function buttons, and switching can be performed between the graphrepairing functions with the displayed function button. The switchingoperation is simple, thereby being beneficial to improve the userexperience.

In an embodiment, the display control is configured to: generate, in theautomatic mode or the manual mode, a function switching instruction inresponse to a third touch control operation applied on a target functionbutton, and switch between the graph repairing functions to switch to atarget graph repairing function selected by the third touch controloperation; or switch, in the automatic mode or the manual mode, a graphrepairing function corresponding to the target function button inresponse to a third touch control operation applied on a target functionbutton.

In a second aspect, an electronic device is provided according toembodiments of the present disclosure. The electronic device includes: astorage apparatus configured to store an image; and an image processingcomponent connected to the storage apparatus. The image processingcomponent is the image processing component described above.

In a third aspect, an image processing method is provided according toembodiments of the present disclosure. The method can be used to realizeat least two graph repairing functions. The method includes: displayingan image to be edited in a first region of a display region of anelectronic device, or displaying a target image obtained by processingan image to be edited with the graph repairing function; and switchingbetween the graph repairing functions in response to a functionswitching instruction in a case that the electronic device is in anautomatic mode, where in the automatic mode, the electronic deviceperforms automatic graph repairing processing on a preset region of theimage to be edited or the target image according to a preset automaticgraph repairing rule; and/or switching between the graph repairingfunctions in response to a function switching instruction in a case thatthe electronic device is in a manual mode, where in the manual mode, aregion to be processed is selected from the image to be edited or thetarget image based on a first touch control operation, and manual graphrepairing processing is performed on the region to be processedaccording to a manual graph repairing rule based on at least a firstoperation feature among the first touch control operation.

In an embodiment, the method further includes: detecting a second touchcontrol operation, determining an automatic graph repairing intensityfeature based on a second operation feature of the second touch controloperation, and determining an automatic graph repairing parametermatching with at least the automatic graph repairing intensity featurefrom preset automatic parameters included in the preset automatic graphrepairing rule to perform automatic graph repairing processing on thepreset region, when the electronic device is in the automatic mode.

In an embodiment, the process of determining an automatic graphrepairing parameter matching with at least the automatic graph repairingintensity feature from preset automatic parameters included in thepreset automatic graph repairing rule to perform automatic graphrepairing processing on the preset region includes: determining a firsttarget graph repairing function, and determining an automatic graphrepairing parameter matching with the automatic graph repairingintensity feature and the first target graph repairing function from thepreset automatic parameters included in the preset automatic graphrepairing rule, to perform automatic graph repairing processing on thepreset region.

In an embodiment, the method further includes: determining a secondtarget graph repairing function, determining a manual graph repairingparameter matching with at least the second target graph repairingfunction from preset manual parameters included in the preset manualgraph repairing rule, to perform manual graph repairing processing onthe region to be processed selected by the first touch controloperation.

In an embodiment, the method further includes: detecting a second touchcontrol operation applied on a graph repairing intensity selectionregion corresponding to the graph repairing function, and determining anautomatic graph repairing intensity feature based on a second operationfeature of the second touch control operation. The graph repairingintensity selection region corresponding to the graph repairing functionis located in a region other than the first region in the displayregion.

In an embodiment, a prompt identification representing the automaticgraph repairing intensity feature is arranged in the graph repairingintensity selection region. When it is switched from the manual mode tothe automatic mode for the graph repairing function or it is switched tothe graph repairing function, the prompt identification is located at aninitial position in the graph repairing intensity selection region.

In an embodiment, the method further includes: generating a modeswitching instruction in response to a second touch control operationapplied on a mode switching button, and switching from a currentautomatic mode to a manual mode or switching from a current manual modeto the automatic mode. The mode switching button is displayed in aregion other than the first region in the display region.

In an embodiment, the method further includes: displaying a graphrepairing function interface in a region other than the first region inthe display region, and displaying a function button corresponding tothe graph repairing function in the graph repairing function interface;and generating, in response to a third touch control operation appliedon a target function button, a function switching instruction, andswitching between the graph repairing functions to switch to a targetgraph repairing function selected by the third touch control operation;or switching to a graph repairing function corresponding to a targetfunction button in response to a third touch control operation appliedon the target function button.

In an embodiment, the method further includes: generating, in theautomatic mode or the manual mode, a function switching instruction inresponse to the third touch control operation applied on the targetfunction button, and switching between the graph repairing functions toswitch to the target graph repairing function selected by third touchcontrol operation; or switching, in the automatic mode or the manualmode, to the graph repairing function corresponding to the targetfunction button in response to the third touch control operation appliedon the target function button.

In a fourth aspect, an electronic device is provided according toembodiments of the present disclosure. The electronic device can realizeat least two graph repairing functions. The electronic device includes adisplay unit and a processing unit. The display unit is configured todisplay an image to be edited in a first region of a display region, ordisplay a target image obtained by processing an image to be edited withthe graph repairing function. The processing unit is configured toswitch between the graph repairing functions in response to a functionswitching function, when the electronic device is in the automatic mode,where in the automatic mode, the electronic device performs automaticgraph repairing processing on a preset region of the image to be editedor the target image according to a preset automatic graph repairingrule; and/or configured to switch between the graph repairing functionsin response to the function switching instruction when the electronicdevice is in the manual mode. In the manual mode, a region to beprocessed is selected from the image to be edited or the target imagebased on the first touch control operation, and manual graph repairingprocessing is performed on the region to be processed according to apreset manual graph repairing rule based on at least a first operationfeature of the first touch control operation.

In an embodiment, the processing unit is further configured to: detect asecond touch control operation, determine an automatic graph repairingintensity feature based on a second operation feature of the secondtouch control operation, and determine an automatic graph repairingparameter matching with at least the automatic graph repairing intensityfeature from preset automatic parameters included in the presetautomatic graph repairing rule, to perform automatic graph repairingprocessing on the preset region, when the electronic device is in theautomatic mode.

In an embodiment, the processing unit is further configured to:determine a first target graph repairing function, and determine anautomatic graph repairing parameter matching with the automatic graphrepairing intensity feature and the first target graph repairingfunction from the preset automatic parameters included in the presetautomatic graph repairing rule, to perform automatic graph repairingprocessing on the preset region.

In an embodiment, the processing unit is configured to: determine asecond target graph repairing function, and determine a manual graphrepairing parameter matching with at least the second target graphrepairing function from preset manual parameters included in the presetmanual graph repairing rule, to perform manual graph repairingprocessing on the region to be processed selected by the first touchcontrol operation, when the electronic device is in the manual mode.

In an embodiment, the display unit is configured to display a graphrepairing intensity selection region corresponding to the graphrepairing function in a region other than the first region in thedisplay region. The processing unit is further configured to detect asecond touch control operation applied on the graph repairing intensityselection region corresponding to the graph repairing function, anddetermine an automatic graph repairing intensity feature based on asecond operation feature of the second touch control operation.

In an embodiment, the display unit is further configured to display amode switching button in a region other than the first region in thedisplay region. The processing unit is further configured to: generate amode switching instruction in response to a second touch controloperation applied on the mode switching button, and switch from acurrent automatic mode to a manual mode or switch from a current manualmode to the automatic mode.

In an embodiment, the display unit is further configured to display agraph repairing function interface in a region other than the firstregion in the display region, and display a function buttoncorresponding to the graph repairing function in the graph repairingfunction interface. The processing unit is further configured togenerate a function switching instruction in response to a third touchcontrol operation applied on a target function button, and switchbetween graph repairing functions, to switch to a target graph repairingfunction selected by third touch control operation; or switch to a graphrepairing function corresponding to the target function button inresponse to the third touch control operation applied on the targetfunction button.

In an embodiment, the processing unit is further configured to:generate, in the automatic mode or the manual mode, a function switchinginstruction in response to a third touch control operation applied on atarget function button, and switch between graph repairing functions, toswitch to a target graph repairing function selected by the third touchcontrol operation; or switch, in the automatic mode or the manual mode,to a graph repairing function corresponding to the target functionbutton in response to a third touch control operation applied on atarget function button.

In a fifth aspect, an electronic device is provided according toembodiments of the present disclosure. The electronic device includes:one or more processors; and a memory in communication connection withthe one or more processors. One or more applications are stored in thememory. The applications are executed by the one or more processors toperform the method described above.

In a sixth aspect, a computer readable storage medium storing a computerprogram is provided according to embodiments of the present disclosure.The programs are executed by a processor to perform the method describedabove.

In a seventh aspect, a computer program product including a computerinstruction is provided according to embodiments of the presentdisclosure. The computer instruction is executed by a processor toperform the method described in the third aspect.

According to the technical solution of the present disclosure, theautomatic image processing control is provided, and the automatic imageprocessing control can run in an automatic mode in which automatic graphrepairing is performed. The manual image processing control is furtherprovided, and the manual image processing control can run in a manualmode in which manual graphic repairing is performed. The automatic imageprocessing control and the manual image processing control do not limitthe graph repairing function, that is, supporting switching between theautomatic mode and the manual mode for the graph repairing function. Inaddition, in the automatic mode or the manual mode, switching can beperformed between the graph repairing functions in response to thefunction switching instruction. In the conventional technology,switching can be performed between the manual mode and the automaticmode only in a graph repairing mode. Compared with the solution in theconventional technology, with the technical solution of the presentdisclosure, operations are simplified and user experience is improved ina case of satisfying user requirements.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic structural diagram of an image processingcomponent according to an embodiment of the present disclosure;

FIG. 2 is a first schematic diagram of an interface of the imageprocessing component according to the embodiment of the presentdisclosure in an example;

FIG. 3 is a second schematic diagram of the interface of the imageprocessing component according to the embodiment of the presentdisclosure in an example;

FIG. 4 is a third schematic diagram of the interface of the imageprocessing component according to the embodiment of the presentdisclosure in an example;

FIG. 5 is a schematic flowchart of an image processing method accordingto an embodiment of the present disclosure;

FIG. 6 is a schematic structural diagram of logic units of an electronicdevice according to an embodiment of the present disclosure; and

FIG. 7 is a schematic structural diagram of hardware of an electronicdevice according to an embodiment of the present disclosure.

DETAILED DESCRIPTION

In order to make objects, technical solutions and advantages of thepresent disclosure to be clearer and easier to be understood, thepresent disclosure is further described in detail in conjunction withdrawings and embodiments hereinafter. It should be understood that theembodiments described herein are only used to explain the presentdisclosure rather than limit the present disclosure.

Multiple operations performed in a specific order are included in flowsdescribed in specification, claims and the above drawings of the presentdisclosure. It should be understood that the flows may include more orfewer operations, and the operations may be performed in an order or inparallel.

An image processing component is provided according to an embodiment ofthe present disclosure. The apparatus is applied to an electronic deviceand can realize at least two graph repairing functions. Solutions of thepresent disclosure are described in detail hereinafter with reference toFIG. 1 to FIG. 4 . The image processing component includes at least adisplay control, an automatic image processing control and a manualimage processing control.

The display control is configured to display an image to be edited in afirst region of a display region, or display a target image obtained byprocessing an image to be edited with the graph repairing function.

The automatic image processing control is configured to enter, inresponse to a first control instruction, an automatic mode in whichautomatic graph repairing is performed on a preset region of the imageto be edited or the target image according to a preset automatic graphrepairing rule.

The manual image processing control is configured to enter, in responseto a second control instruction, a manual mode in which a region to beprocessed is selected from the image to be edited or the target imagebased on a first touch control operation, and manual graph repairing isperformed on the region to be processed according to a preset manualgraph repairing rule based on at least a first operation feature of thefirst touch control operation (such as touch control intensity, or thenumber of times of clicking in a predetermined time period).

In the automatic mode and/or the manual mode, the electronic device canswitch between graph repairing functions at least in response to afunction switching instruction. That is, in the automatic mode,switching can be performed between the graph repairing functions; and inthe manual mode, switching can also be performed between the graphrepairing functions. In the conventional technology, switching can beperformed between the manual mode and the automatic mode only in thegraph repairing mode. According to the solution of the presentdisclosure, operations are simplified, and the operations are flexible,thereby improving user experience in a case of satisfying the userrequirement.

In an example, in order to be convenient for a user to switch betweenthe automatic mode and the manual mode in a graph repairing process, thedisplay control is configured as follows. Specifically, as shown in FIG.2 , the display control is configured to: display a mode switchingbutton in a region other than a first region in the display region;generate a mode switching instruction in response to a second touchcontrol operation (such as clicking operation) applied on a modeswitching button, to switch from a current automatic mode to a manualmode, or switch from a current manual mode to an automatic mode. Thatis, if the electronic device is currently in the automatic mode, a modeswitching instruction is generated by clicking the mode switching buttonto switch to the manual mode. Accordingly, if the electronic device iscurrently in the manual mode, a mode switching instruction is generatedby clicking the mode switching button, to switch to the automatic mode.Switching between the manual mode and the automatic mode can beperformed with the mode switching button. In a practical application, asshown in FIG. 3 , when the electronic device is in the manual mode, themode switching button may display prompt information for prompting toenter the automatic mode, such as “switch to automatic” to prompt theuser that the mode can be switched. Similarly, as shown in FIG. 4 , whenthe electronic device is in the automatic mode, the mode switchingbutton may display prompt information for prompting to enter the manualmode, such as “switch to manual” to prompt the user that the mode can beswitched.

In another example, supported graph repairing functions may be displayedin a graph repairing function interface in order to satisfy the graphrepairing requirement of the user. As shown in FIG. 2 , the displaycontrol is further configured to display a graph repairing functioninterface in a region other than the first region in the display region,and display a function button corresponding to the graph repairingfunction in the graph repairing function interface.

The display control is further configured to generate a functionswitching instruction in response to a third touch control operation(such as clicking operation) applied on a target function button (afunction button corresponding to a certain graph repairing function inthe graph repairing function interface), and switch between the graphrepairing functions to switch to a target graph repairing functionselected by the third touch control operation. For example, a firstfunction button corresponding to a first graph repairing function and asecond function button corresponding to a second graph repairingfunction are displayed in the graph repairing function interface, andthe electronic device is currently in a first graph repairing functionmode. In this case, if the user clicks the second function buttoncorresponding to the second graph repairing function, a functionswitching instruction is generated to switch a second graph repairingfunction selected by the clicking operation. Therefore, the switchingbetween functions is performed by the function button arranged in thegraph repairing function interface. Alternatively, the display controlis configured to switch to a graph repairing function corresponding to atarget function button in response to a third touch control operationapplied on the target function button. For example, the first functionbutton corresponding to the first graph repairing function and thesecond function button corresponding to the second graph repairingfunction are displayed in the graph repairing function interface, andthe electronic device is not in any graph repairing function modepresently, for example, the image processing component is just started.In this case, when the second function button corresponding to thesecond graph repairing function is clicked, it is switched to the secondgraph repairing function. Graph repairing can be performed on the imageto be edited or the target image with the target graph repairingfunction selected by the third touch control operation, to satisfydifferent graph repairing function requirements of the user.

In an example, as shown in FIG. 2 , a graph repairing function interfacecontaining a function button and a mode switching button are displayedin a region other than the first region in the display interface. Thedisplay control is further configured to: generate, in the automaticmode or the manual mode, a function switching instruction in response toa third touch control operation applied on a target function button, andswitch between graph repairing functions, to switch to a target graphrepairing function selected by the third touch control operation. Thatis, whether in the automatic mode or in the manual mode, the electronicdevice can switch between the graph repairing functions.

Alternatively, the display control is further configured to switch, inthe automatic mode or the manual mode, to a graph repairing functioncorresponding to the target function button in response to a third touchcontrol operation applied on the target function button. That is,whether in the automatic mode or in the manual mode, the electronicdevice can directly switch to the selected graph repairing function froman initial state.

In an actual application, an initial state may be set for the electronicdevice. For example, the image processing component enters the automaticmode by default once being started. In this case, the user may select arequired graph repairing function in the graph repairing functioninterface in the automatic mode; and the graph repairing function is bydefault in the automatic mode. A mode may be switched to the manual modeby clicking the mode switching button. Practically, the initial statemay be set in other manners, and specific set manners are not limited inthe embodiment of the present disclosure.

In an actual application, the number of function buttons in the graphrepairing interface, that is, the number of graph repairing functions,may be set according to actual requirements, and is not limited in theembodiments of the present disclosure.

In an embodiment, the automatic image processing control is furtherconfigured to: detect a second touch control operation in the automaticmode, determine an automatic graph repairing intensity feature based ona second operation feature of the second touch control operation, anddetermine an automatic graph repairing parameter matching with at leastthe automatic graph repairing intensity feature from preset automaticparameters included in the preset automatic graph repairing rule, toperform automatic graph repairing processing on a preset region. Thatis, even if in the automatic mode, the user can select the automaticgraph repairing intensity feature by the touch control operation. Inanother example, the graph repairing intensity feature is associatedwith a current graph repairing function. For example, the automaticimage processing control is further configured to: determine a firsttarget graph repairing function in the automatic mode, and determine anautomatic graph repairing parameter matching with the automatic graphrepairing intensity feature and the first target graph repairingfunction from the preset automatic parameter included in the presetautomatic graph repairing rule, to perform automatic graph repairingprocessing on the preset region. In this case, the automatic graphrepairing intensity feature is not only associated with the touchcontrol operation of the user, but also associated with the currentgraph repairing function, that is, associated with the first targetgraph repairing function.

A graph repairing intensity selection region may be arranged in order toconveniently select the graph repairing intensity by the user in theautomatic mode. As shown in FIG. 3 , the automatic image processingcontrol is further configured to display a graph repairing intensityselection region corresponding to the graph repairing function in theregion other than the first region in the display region, and determinethe automatic graph repairing intensity feature corresponding to thesecond operation feature (such as moving trajectory) with the graphrepairing intensity selection region. The second touch control operationis applied on the graph repairing intensity selection region. That is,the automatic graph repairing intensity feature can be determined basedon the operation feature of the touch control operation applied to thegraph repairing intensity selection region.

For facilitating image processing and parameter setting, a promptidentification representing an automatic graph repairing intensityfeature is arranged in the graph repairing intensity selection region.The graph repairing function switched from the manual mode to theautomatic mode, or the prompt identification is located at an initialposition in the graph repairing intensity selection region when it is inthe graph repairing function mode. That is, the automatic graphrepairing intensity feature can be represented by the position of theprompt identification in the graph repairing intensity selection region.For example, as shown in FIG. 4 , the graph repairing intensityselection region may be represented by a sliding rod. An initialposition is arranged at the leftmost end of the sliding rod. The promptidentification may be controlled to move from the initial position to afirst position in response to the touch control operation of the user.In this case, the automatic graph repairing intensity feature can bedetermined based on a distance between the initial position and thefirst position.

In another example, the manual image processing control is furtherconfigured to determine a second target graph repairing function in themanual mode, and determine a manual graph repairing parameter matchingwith at least the second target graph repairing function from the presetmanual parameters included in the preset manual graph repairing rule, toperform manual graph repairing processing on the region to be processedselected by the first touch control operation. That is, in the manualmode, the manual graph repairing parameter may match with the currentgraph repairing function. In an actual application, the manual graphrepairing parameter may also be related to the operation strength of thetouch control operation of the user. Factors related to the manual graphrepairing parameter are not limited in the present disclosure.

According to the technical solution of the present disclosure, theautomatic image processing control is provided, and the automatic imageprocessing control can run in an automatic mode in which automatic graphrepairing is performed. The manual image processing control is furtherprovided, and the manual image processing control can run in a manualmode in which manual graphic repairing is performed. The automatic imageprocessing control and the manual image processing control do not limitthe graph repairing function, that is, supporting switching between theautomatic mode and the manual mode for the graph repairing function. Inaddition, in the automatic mode or the manual mode, switching can beperformed between the graph repairing functions in response to thefunction switching instruction. In the conventional technology,switching can be performed between the manual mode and the automaticmode only in a graph repairing mode. Compared with the solution in theconventional technology, with the technical solution of the presentdisclosure, operations are simplified and user experience is improved ina case of satisfying user requirements.

Embodiments of the present disclosure are further described in detail inconjunction with specific application scenarios hereinafter. It isassumed that the image processing component supports three graphrepairing functions: skin grinding function, freckle removing and acneremoving function, and whitening function. The actual application mayinclude the following two scenarios.

First Scenario

An image processing component is started to select the skin grindingfunction, and a graph repairing mode is by default an automatic mode forthe skin grinding function. That is, automatic graph repairing isperformed for the skin grinding function. In this case, switchingbetween functions is performed by clicking a function button, and graphrepairing processing is also performed in the automatic mode for theswitched function. For example, the whitening function is clicked, andautomatic graph repairing is performed for the whitening function.

Alternatively, a mode switching button is clicked to switch the mode. Asshown in FIG. 4 , the image processing component switches to a manualmode when the “switch to manual” button is clicked. In this case, manualgraph repairing is performed for the skin grinding function. Switchingbetween functions is performed by clicking another function button.Graph repairing processing is performed for the switched function in themanual mode.

Second Scenario

The image processing component is started to enter an automatic mode bydefault, and a graph repairing function is not determined. In this case,the user clicks the “switch to manual” button shown in FIG. 4 , toswitch to the manual mode. Then, skin grinding function is selected,that is, manual graph repairing is performed for the skin grindingfunction. Similar to the first scenario, function switching can beperformed by other function button, and mode switching can be performedby clicking the mode switching button.

According to the technical solution of the present disclosure, switchingbetween the automatic mode and the manual mode can be realized for anygraph repairing function. In addition, in the automatic mode or themanual mode, switching between different graph repairing functions canbe realized, thereby simplifying the user operations and improving theuser experience in case of satisfying the user requirements.

An electronic device is further provided according to an embodiment ofthe present disclosure. The electronic device includes at least: astorage apparatus configured to store an image; and an image processingcomponent connected to the storage apparatus. The image processingcomponent is applied to the electronic device to realize at least twograph repairing functions. The image processing component is the imageprocessing component described above.

An image processing method is further provided according to anembodiment of the present disclosure to realize at least two graphrepairing functions. An image to be edited is displayed in a firstregion of a display region of the electronic device, or a target imageobtained by processing an image to be edited with a graph repairingfunction is displayed. As shown in FIG. 5 , the method includes step 501and/or step 502 as follows.

In step 501, when the electronic device is in an automatic mode,switching between graph repairing functions is performed in response toa function switching instruction. In the automatic mode, the electronicdevice performs automatic graph repairing processing on the image to beedited or the target image according to a preset automatic graphrepairing rule.

In step 502, when the electronic device is in a manual mode, switchingbetween graph repairing functions is performed in response to a functionswitching instruction. In the manual mode, a region to be processed isselected from the image to be edited or the target image in response toa first touch control operation, and manual graph repairing processingis performed on the region to be processed according to the presetmanual graph repairing rule based on at least a first operation featureof the first touch control operation.

That is, in the automatic mode, switching between graph repairingfunctions can be realized; and in the manual mode, switching betweengraph repairing functions can also be realized. In the conventionaltechnology, switching between the manual mode and the automatic mode canbe realized only in the graph repairing mode. Compared with the solutionin the conventional technology, according to the technical solution ofthe present disclosure, the operations are simplified and flexible,thereby improving user experience in case of satisfying the userrequirement.

It should be noted that, in an actual application, an order ofperforming steps 501 and 502 is not limited, and step 501 and step 502may exist in parallel. In one scenario, only step 501 is performed; inanother scenario, only step 502 is performed; and in still anotherscenario, both step 501 and step 502 are performed. In an example, step501 is performed, and then step 502 is performed. That is, functionswitching is performed in the automatic mode first, and then the mode isswitched to the manual mode to perform function switching.Alternatively, step 502 is performed, and then step 501 is performed.That is, function switching is performed in the manual mode, and thenthe mode is switched to the automatic mode to perform functionswitching. The order for performing steps is related to an operationhabit or a graph repairing habit of the user, and is not limited in thepresent disclosure.

In an embodiment, the method further includes: detecting a second touchcontrol operation, determining an automatic graph repairing intensityfeature based on a second operation feature of the second touch controloperation, and determining an automatic graph repairing parametermatching with at least the automatic graph repairing intensity featurefrom preset automatic parameters included in the preset automatic graphrepairing rule to perform automatic graph repairing processing on thepreset region, when the electronic device is in the automatic mode.

In an embodiment, the process of the determining an automatic graphrepairing parameter matching with at least the automatic graph repairingintensity feature from preset automatic parameters included in thepreset automatic graph repairing rule to perform automatic graphrepairing processing on the preset region includes: determining a firsttarget graph repairing function, and determining an automatic graphrepairing parameter matching with the automatic graph repairingintensity feature and the first target graph repairing function from thepreset automatic parameters included in the preset automatic graphrepairing rule, to perform automatic graph repairing processing on thepreset region.

In an embodiment, the method further includes: determining a secondtarget graph repairing function, determining a manual graph repairingparameter matching with at least the second target graph repairingfunction from preset manual parameters included in the preset manualgraph repairing rule, to perform manual graph repairing processing onthe region to be processed selected by the first touch controloperation, when the electronic device is in the manual mode.

In an embodiment, the method further includes: detecting a second touchcontrol operation applied on a graph repairing intensity selectionregion corresponding to the graph repairing function, and determining anautomatic graph repairing intensity feature based on a second operationfeature of the second touch control operation. The graph repairingintensity selection region corresponding to the graph repairing functionis located in a region other than the first region in the displayregion.

In an embodiment, a prompt identification representing the automaticgraph repairing intensity feature is arranged in the graph repairingintensity selection region. When it is switched from the manual mode tothe automatic mode for the graph repairing function or the graphrepairing function is selected, the prompt identification is located atan initial position in the graph repairing intensity selection regioncorresponding to the graph repairing function.

In an embodiment, the method further includes: generating a modeswitching instruction in response to a second touch control operationapplied on a mode switching button, to switch from a current automaticmode to a manual mode, or switch from a current manual mode to theautomatic mode. The mode switching button is located in the region otherthan the first region in the display region.

In an embodiment, a graph repairing function interface is displayed inthe region other than the first region in the display region, and afunction button corresponding to the graph repairing function isdisplayed in the graph repairing function interface. The method furtherincludes: generating, in response to a third touch control operationapplied on a target function button, a function switching instruction,and switching between the graph repairing functions to switch to atarget graph repairing function selected by the third touch controloperation; or switching to a graph repairing function corresponding to atarget function button in response to a third touch control operationapplied on the target function button.

In an embodiment, the method further includes: generating, in theautomatic mode or the manual mode, a function switching instruction inresponse to the third touch control operation applied on the targetfunction button, and switching between the graph repairing functions toswitch to the target graph repairing function selected by the thirdtouch control operation; or switching, in the automatic mode or themanual mode, to the graph repairing function corresponding to the targetfunction button in response to the third touch control operation appliedon the target function button.

It should be noted that, the method embodiments are described similarlyas the image processing component, and can generate the same beneficialeffect as the image processing component. For the technical details notdisclosed in the method embodiments of the present disclosure, one mayrefer to description of the embodiments of the image processingcomponent. For conciseness, details are not repeated herein.

A computer program product including computer instructions is furtherprovided according to an embodiment of the present disclosure. Thecomputer instructions are executed by a processor to perform at leastone of the methods according to the present disclosure.

An electronic device is further provided according to an embodiment ofthe present disclosure, to realize at least two graph repairingfunctions. As shown in FIG. 6 , the electronic device includes a displayunit 61 and a processing unit 62.

The display unit 61 is configured to display an image to be edited in afirst region of a display region, or display a target image obtained byprocessing an image to be edited with the graph repairing function.

The processing unit 62 is configured to switch, when the electronicdevice is in the automatic mode, between graph repairing functions inresponse to a function switching instruction, where in the automaticmode, the electronic device performs automatic graph repairingprocessing on a preset region of the image to be edited or the targetimage according to a preset automatic graph repairing rule; and/orswitch, when the electronic device is in the manual mode, between graphrepairing functions in response to the function switching instruction,where in the manual mode, a region to be processed is selected from theimage to be edited or the target image in response to a first touchcontrol operation and manual graph repairing processing is performed onthe region to be processed according to the preset manual graphrepairing rule based on at least a first operation feature of the firsttouch control operation.

In an embodiment, the processing unit 62 is further configured to:detect a second touch control operation, determine an automatic graphrepairing intensity feature based on a second operation feature of thesecond touch control operation, and determine an automatic graphrepairing parameter matching with at least the automatic graph repairingintensity feature from preset automatic parameters included in thepreset automatic graph repairing rule to perform automatic graphrepairing processing on the preset region, when the electronic device isin the automatic mode.

In an embodiment, the processing unit 62 is further configured to:determine a first target graph repairing function, and determine anautomatic graph repairing parameter matching with the automatic graphrepairing intensity feature and the first target graph repairingfunction from the preset automatic parameters included in the presetautomatic graph repairing rule, to perform automatic graph repairingprocessing on the preset region.

In an embodiment, the processing unit 62 is further configured to:determine a second target graph repairing function, determine a manualgraph repairing parameter matching with at least the second target graphrepairing function from preset manual parameters included in the presetmanual graph repairing rule, to perform manual graph repairingprocessing on the region to be processed selected by the first touchcontrol operation, when the electronic device is in the manual mode.

In an embodiment, the processing unit 61 is further configured to:display a graph repairing intensity selection region corresponding tothe graph repairing function in a region other than the first region inthe display region.

The processing unit 62 is further configured to: detect a second touchcontrol operation applied on a graph repairing intensity selectionregion corresponding to the graph repairing function, and determine anautomatic graph repairing intensity feature based on a second operationfeature of the second touch control operation.

In an embodiment, the display unit 61 is further configured to display amode switching button in a region other than the first region in thedisplay region.

The processing unit 62 is further configured to generate a modeswitching instruction in response to a second touch control operationapplied on the mode switching button, to switch from a current automaticmode to a manual mode or switch from a current manual mode to anautomatic mode.

In an embodiment, the display unit 61 is further configured to display agraph repairing function interface in a region other than the firstregion in the display region, and display a function buttoncorresponding to the graph repairing function in the graph repairingfunction interface.

The processing unit 62 is further configured to: generate a functionswitching instruction in response to a third touch control operationapplied on the target function button, and switch between graphrepairing functions, to switch to a target graph repairing functionselected by the third touch control operation; or switch to a graphrepairing function corresponding to the target function button inresponse to a third touch control operation applied on the targetfunction button.

In an embodiment, the processing unit 62 is further configured to:generate, in a the automatic mode or manual mode, a function switchinginstruction in response to a third touch control operation applied onthe target function button, and switch between graph repairing functionsto switch to a target graph repairing function selected by the thirdtouch control operation; or switch, in the current automatic mode ormanual mode, to a graph repairing function corresponding to the targetfunction button in response to a third touch control operation appliedon the target function button.

It should be noted that, the electronic device is described similarly asthe method embodiments, and can generate the same beneficial effect asthe method embodiments. For the technical details not disclosed in theembodiments of the electronic device in the present disclosure, one mayrefer to description of the embodiments of the method embodiments. Forconciseness, details are not repeated herein.

An electronic device is further provided according to an embodiment ofthe present disclosure. The electronic device includes: one or moreprocessors; and a memory in communication connection to the one or moreprocessors. One or more applications are stored in the memory, and theapplications are executed by the one or more processors to perform themethod described above.

In an example, the electronic device according to the embodiment of thepresent disclosure may have a structure shown in FIG. 7 . The electronicdevice includes at least a processor 71, a storage medium 72 and atleast one external communication interface 73. The processor 71, thestorage medium 72 and the external communication interface 73 areconnected to each other via a communication bus 74. The processor 71 maybe a microprocessor, a central processing unit, a digital signalprocessor or an electronic device having a processing function, such asa programmable logic array. The storage medium stores computerexecutable codes, and the computer executable codes are executed toperform the method according to any of the above embodiments. In anactual application, the display unit 61 and the processing unit 62 maybe implemented as the processor 71. Alternatively, the display control,the automatic image processing control and the manual image processingcontrol each may be implemented as the processor 71.

A computer readable storage medium storing computer programs is furtherprovided according to an embodiment of the present disclosure, and theprograms are executed by a processor to perform the method describedabove.

The computer readable storage medium may be any apparatus containing,storing, or transmitting programs for use by an instruction executingsystem, apparatus or device or use in combination with the instructionexecuting system, apparatus or device. The computer readable storagemedium may include but not limited to: an electric connection portion(electronic apparatus) having one or more wires, a portable computermagnetic disk (a magnetic apparatus), a random access memory (RAM), aread-only memory (ROM), an erasable programmable read only memory (EPROMor a flash memory), an optical fiber, and a portable compact disk readonly memory (CD-ROM). In addition, the computer readable storage mediummay be papers or other suitable medium on which the programs can beprinted. The programs may be obtained by performing optical scanning onthe papers or other medium, and then by editing, decoding and otherprocessing manners if necessary, and the programs are then stored in thecomputer memory.

It should be understood by a person skilled in the art that all or apart of steps in the methods described in the above embodiments may beperformed by hardware instructed by a program. The program may be storedin a computer readable storage medium. The program is executed toperform one of steps of the method or combination of steps of themethod.

The function apparatuses in the embodiments of the present disclosuremay be integrated in one processing module, the function apparatuses maybe physically independent from each other, or two or more apparatusesmay be integrated in one module. The integrated module may beimplemented by hardware or a software function module. If the integratedmodule is implemented as the software function module and sold or usedas an independent product, the integrated module may be stored in acomputer readable storage medium. The storage medium may be a read onlymemory, a magnetic disk or an optical disk.

Only some embodiments of the present disclosure rather than all theembodiments are described above. All other embodiments obtained based onthe embodiments of the present disclosure without creative work by thoseskilled in the art fall within the protection scope of the presentdisclosure.

The invention claimed is:
 1. An image processing component, applied toan electronic device to realize at least two graph repairing functions,the image processing component comprising: a display control, configuredto display an image to be edited in a first region of a display regionor display a target image obtained by processing the image to be edited,the display control further configured to display a mode switchingbutton configured to implement switches between an automatic mode and amanual mode, the display control further configured to display a graphrepairing function interface configured to contain a function button andswitch between the at least two graph repairing functions, wherein themode switching button and the graph repairing function interface aredisplayed on a same page, and wherein the automatic mode or the manualmode entered before switching from one to another graph repairingfunction is applicable to the switched another graph repairing functionamong the at least two graph repairing functions; an automatic imageprocessing control, configured to enter, in response to a first controlinstruction generated based on an operation via the mode switchingbutton, the automatic mode in which automatic graph repairing isperformed on a preset region of the image to be edited or the targetimage according to a preset automatic graph repairing rule; and a manualimage processing control, configured to enter, in response to a secondcontrol instruction generated based on another operation via the modeswitching button, the manual mode in which a region to be processed isselected from the image to be edited or the target image based on afirst touch control operation, and manual graph repairing is performedon the region to be processed according to a preset manual graphrepairing rule based on at least a first operation feature of the firsttouch control operation, wherein in the automatic mode and the manualmode, the electronic device is capable of switching between the at leasttwo graph repairing functions in response to a function switchinginstruction generated based on an operation via the graph repairingfunction interface.
 2. The component according to claim 1, wherein thedisplay control is configured to generate, in the automatic mode or themanual mode, a function switching instruction in response to a thirdtouch control operation applied on a target function button, and switchbetween the at least two graph repairing functions, to switch to atarget graph repairing function selected by the third touch controloperation; or the display control is configured to switch, in theautomatic mode or the manual mode, to a graph repairing functioncorresponding to a target function button in response to a third touchcontrol operation applied on the target function button.
 3. An imageprocessing method, the method being capable of realizing at least twograph repairing functions, and the method comprising: displaying animage to be edited in a first region of a display region or displaying atarget image obtained by processing the image to be edited; displaying amode switching button configured to implement switches between anautomatic mode and a manual mode; displaying a graph repairing functioninterface configured to contain a function button, wherein the modeswitching button and the graph repairing function interface aredisplayed on a same page; switching between the automatic mode and themanual mode in response to receiving operations via the mode switchingbutton, wherein in the automatic mode, automatic graph repairingprocessing is performed on a preset region of the image to be edited orthe target image according to a preset automatic graph repairing rule,and wherein in the manual mode, a region to be processed is selectedfrom the image to be edited or the target image based on a first touchcontrol operation, and manual graph repairing processing is performed onthe region to be processed according to a manual graph repairing rulebased on at least a first operation feature of the first touch controloperation; and switching, in the automatic mode and the manual mode,between the at least two graph repairing functions in response to afunction switching instruction generated based on an operation via thegraph repairing function interface, wherein the automatic mode or themanual mode entered before switching from one to another graph repairingfunction is applicable to the switched another graph repairing functionamong the at least two graph repairing functions.
 4. The methodaccording to claim 3, further comprising: detecting a second touchcontrol operation, determining an automatic graph repairing intensityfeature based on a second operation feature of the second touch controloperation, and determining an automatic graph repairing parametermatching with at least the automatic graph repairing intensity featurefrom preset automatic parameters comprised in the preset automatic graphrepairing rule to perform automatic graph repairing processing on thepreset region, in the automatic mode.
 5. The method according to claim4, wherein the determining an automatic graph repairing parametermatching with at least the automatic graph repairing intensity featurefrom preset automatic parameters comprised in the preset automatic graphrepairing rule to perform automatic graph repairing processing on thepreset region comprises: determining a first target graph repairingfunction, and determining an automatic graph repairing parametermatching with the automatic graph repairing intensity feature and thefirst target graph repairing function from the preset automaticparameters comprised in the preset automatic graph repairing rule, toperform automatic graph repairing processing on the preset region. 6.The method according to claim 3, further comprising: determining asecond target graph repairing function, determining a manual graphrepairing parameter matching with at least the second target graphrepairing function from preset manual parameters comprised in the presetmanual graph repairing rule, to perform manual graph repairingprocessing on the region to be processed selected by the first touchcontrol operation, in the manual mode.
 7. The method according to claim3, further comprising: generating, in response to a third touch controloperation applied on a target function button, a function switchinginstruction, and switching between the graph repairing functions toswitch to a target graph repairing function selected by the third touchcontrol operation; or switching to a graph repairing functioncorresponding to a target function button in response to a third touchcontrol operation applied on the target function button.
 8. The methodaccording to claim 7, further comprising: generating, in the automaticmode or the manual mode, a function switching instruction in response tothe third touch control operation applied on the target function button,and switching between the graph repairing functions to switch to thetarget graph repairing function selected by third touch controloperation; or switching, in the automatic mode or the manual mode, tothe graph repairing function corresponding to the target function buttonin response to the third touch control operation applied on the targetfunction button.
 9. An electronic device, comprising: at least oneprocessor; and at least one memory communicatively coupled to the atleast one processor and storing instructions that upon execution by theat least one processor cause the device to perform operationscomprising: displaying an image to be edited in a first region of adisplay region; displaying a mode switching button configured toimplement switches between an automatic mode and a manual mode;displaying a graph repairing function interface configured to contain afunction button, wherein the mode switching button and the graphrepairing function interface are displayed on a same page; switchingbetween the automatic mode and the manual mode in response to receivingoperations via the mode switching button, wherein in the automatic mode,automatic graph repairing processing is performed on a preset region ofthe image to be edited or the target image according to a presetautomatic graph repairing rule, and wherein in the manual mode, a regionto be processed is selected from the image to be edited or the targetimage based on a first touch control operation, and manual graphrepairing processing is performed on the region to be processedaccording to a manual graph repairing rule based on at least a firstoperation feature of the first touch control operation; and switching,in the automatic mode and the manual mode, between the at least twograph repairing functions in response to a function switchinginstruction generated based on an operation via the graph repairingfunction interface, wherein the automatic mode or the manual modeentered before switching from one to another graph repairing function isapplicable to the switched another graph repairing function among the atleast two graph repairing functions.
 10. A computer readablenon-transitory storage medium storing computer programs, wherein theprograms that upon execution on a computing device cause the computingdevice at least to: display an image to be edited in a first region of adisplay region of an electronic device or displaying a target imageobtained by processing the image to be edited; display a mode switchingbutton configured to implement switches between an automatic mode and amanual mode; display a graph repairing function interface configured tocontain a function button, wherein the mode switching button and thegraph repairing function interface are displayed on a same page; switchbetween the automatic mode and the manual mode in response to receivingoperations via the mode switching button, wherein in the automatic mode,the electronic device performs automatic graph repairing processing on apreset region of the image to be edited or the target image according toa preset automatic graph repairing rule, and wherein in the manual mode,a region to be processed is selected from the image to be edited or thetarget image based on a first touch control operation, and manual graphrepairing processing is performed on the region to be processedaccording to a manual graph repairing rule based on at least a firstoperation feature of the first touch control operation; and switch, inthe automatic mode and the manual mode, between the at least two graphrepairing functions in response to a function switching instructiongenerated based on an operation via the graph repairing functioninterface, wherein the automatic mode or the manual mode entered beforeswitching from one to another graph repairing function is applicable tothe switched another graph repairing function among the at least twograph repairing functions.
 11. The device of claim 9, the at least onememory further storing instructions that upon execution by the at leastone processor cause the device to: detect a second touch controloperation, determining an automatic graph repairing intensity featurebased on a second operation feature of the second touch controloperation, and determining an automatic graph repairing parametermatching with at least the automatic graph repairing intensity featurefrom preset automatic parameters comprised in the preset automatic graphrepairing rule to perform automatic graph repairing processing on thepreset region, in the automatic mode.
 12. The device of claim 11, the atleast one memory further storing instructions that upon execution by theat least one processor cause the device to: determine a first targetgraph repairing function, and determining an automatic graph repairingparameter matching with the automatic graph repairing intensity featureand the first target graph repairing function from the preset automaticparameters comprised in the preset automatic graph repairing rule, toperform automatic graph repairing processing on the preset region. 13.The device of claim 9, the at least one memory further storinginstructions that upon execution by the at least one processor cause thedevice to: determine a second target graph repairing function,determining a manual graph repairing parameter matching with at leastthe second target graph repairing function from preset manual parameterscomprised in the preset manual graph repairing rule, to perform manualgraph repairing processing on the region to be processed selected by thefirst touch control operation, in the manual mode.
 14. The device ofclaim 9, the at least one memory further storing instructions that uponexecution by the at least one processor cause the device to: generate,in response to a third touch control operation applied on a targetfunction button, a function switching instruction, and switching betweenthe graph repairing functions to switch to a target graph repairingfunction selected by the third touch control operation; or switching toa graph repairing function corresponding to a target function button inresponse to a third touch control operation applied on the targetfunction button.
 15. The device of claim 14, the at least one memoryfurther storing instructions that upon execution by the at least oneprocessor cause the device to: generate, in the automatic mode or themanual mode, a function switching instruction in response to the thirdtouch control operation applied on the target function button, andswitching between the graph repairing functions to switch to the targetgraph repairing function selected by third touch control operation; orswitch, in the automatic mode or the manual mode, to the graph repairingfunction corresponding to the target function button in response to thethird touch control operation applied on the target function button. 16.The method according to claim 3, further comprising: determining asecond target graph repairing function, determining a manual graphrepairing parameter matching with at least the second target graphrepairing function from preset manual parameters comprised in the presetmanual graph repairing rule, to perform manual graph repairingprocessing on the region to be processed selected by the first touchcontrol operation, when the electronic device is in the manual mode. 17.The method according to claim 4, further comprising: determining asecond target graph repairing function, determining a manual graphrepairing parameter matching with at least the second target graphrepairing function from preset manual parameters comprised in the presetmanual graph repairing rule, to perform manual graph repairingprocessing on the region to be processed selected by the first touchcontrol operation, when the electronic device is in the manual mode. 18.The method according to claim 5, further comprising: determining asecond target graph repairing function, determining a manual graphrepairing parameter matching with at least the second target graphrepairing function from preset manual parameters comprised in the presetmanual graph repairing rule, to perform manual graph repairingprocessing on the region to be processed selected by the first touchcontrol operation, when the electronic device is in the manual mode.